package com.swit.mobile.core;


import	com.swit.mobile.servlet.*;

import	javax.servlet.http.*;

public class CommandLectPlan implements Command{
	private String _next;
	private String class_nm ;

	public CommandLectPlan(String next){
		_next  = next;
		class_nm = getClass().toString();
	}

	public String execute(HttpServletRequest req) throws CommandException{
		try{			
			//Űüũ
			if(!com.swit.mobile.core.Repository.getInstance().keyCheck(req)) return "/jsp/core/keyError.jsp";
			BaseBean bean   = Repository.getInstance().lecturePlanRefl(req);			
			req.setAttribute("bean",bean);			
			return "/jsp/lectPlan/" + System.getProperty("mobile.key") +".jsp";
		}catch(Exception e){
			throw new CommandException(class_nm+".execute() : " + e.getMessage());
		}
		
	}
}